{block name='content'}
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body padding-40 margin-bottom-40">
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs12 block relative">
                <span class="color-green">折扣比例</span><span class="margin-left-5 color-desc">DisCounts</span>
                <input class="layui-input" name="discounts" value="{$vo.discounts|default=''}" placeholder="请输入 折扣比例，输入0表示免费，置空表示无折扣">
            </label>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    <input type='hidden' value="{:input('user_id')}" name='user_id'>

    <div class="layui-form-item text-center">
        <button class="layui-btn" lay-submit lay-filter="submit">保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close="">取消编辑</button>
    </div>
</form>

{/block}

{block name='script'}
<script>
    (function () {

        layui.form.render();

    })();
</script>
{/block}